package com.owc.domain.dto;

import com.owc.common.tool.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("购买产品DTO")
public class BuyProductDTO implements Serializable {

    @ApiModelProperty("订单ID")
    private Long orderId;

    private String time;

    public BuyProductDTO(Long orderId) {
        this.orderId = orderId;
        this.time = DateUtils.formatYMDHMS(new Date());
    }
}
